<?php

if ( ! defined("IN_OP") )
{
    exit("You can't access this file directly...");
}
$conf = new Config();
if ( isset($_GET['ok']) && $_GET['ok'] == 1 )
{
    $_SESSION['confirm'] = 1;
    redirect("op.php?op=member");
}
$ui = new UI(false);
echo "<body topmargin=0 leftmargin=0\r\n\tonkeydown='keyboardkey()'\r\n\toncontextmenu='window.event.returnValue=false'\r\n\tbackground='core/tpl/".G_TEMPLATE."/image/bg.gif'>";
echo "<script language='JavaScript'>\r\nfunction keyboardkey()\r\n{\r\n\tif (event.ctrlKey && event.keyCode == 78)\r\n\t   alert('WELCOME !');\r\n\telse if (event.shiftKey)\r\n\t   alert('WELCOME !');\r\n}\r\n</script>";
$tpl = new Template2();
$tpl->load("main" , "confirm.htm");
$tpl->set("G_SITENAME" , G_SITENAME);
$fixdiskexc = "所有赔率将不时浮动，派彩时的赔率将以确认投注时之赔率为准。";
$tpl->set("FIX_DISK" , $fixdiskexc);
$newmsg = trim($conf->Get("news_th"));
$newmsg = str_replace("\r\n" , "" , $newmsg);
if ( $newmsg != "" )
{
    $tpl->set("alertMsg" , "<script>alert('{$newmsg}')</script>");
}
$tpl->show("main");
$ui->footer();